<?php
require_once("../../classes/Student.php");

$user = new Student;
$fname = ucwords(strtolower($_POST['fname']));
$lname = ucwords(strtolower($_POST['lname']));
$username = $_POST['username'];
$password = $_POST['password'];
$gender = ucwords(strtolower($_POST['gender']));
$user->addUser($fname,$lname,$username,$password,$gender);

header('location: ../../index.php');
?>